package cn.com.lms.business.learning.persistence.entity;

import com.bnzj.core.persistence.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

@Data
@Entity
@Table(name = "bnz_learning_plan", schema = "bnzj")
public class FbLearningPlan extends BaseEntity {
    @Schema(description = "学习计划名称")
    private String planName;
    @Schema(description = "完成时间")
    private Date finishTime;
    private String remark;
    @Schema(description = "封面图片")
    private String coverUrl;
    @Schema(description = "学分")
    private int score;
    @Schema(description = "状态")
    private Long stateId;
    @Schema(description = "是否删除")
    private String isDelete;
    @Schema(description = "是否完成")
    private String isOver;
    @Schema(description = "发布时间")
    private Date releaseTime;
    @Schema(description = "参加人数")
    @Transient
    private Integer joinNum;
    @Schema(description = "完成人数")
    @Transient
    private Integer finishNum;
    @Schema(description = "学习天数")
    @Transient
    private Integer studyDays;
    @Schema(description = "状态名称")
    @Transient
    private String stateName;


}
